package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.FieldDao;
import com.suke.czx.modules.examstack.exam.entity.FieldEntity;
import com.suke.czx.modules.examstack.exam.service.FieldService;



@Service("fieldService")
public class FieldServiceImpl implements FieldService {
	@Autowired
	private FieldDao fieldDao;
	
	@Override
	public FieldEntity queryObject(Integer fieldId){
		return fieldDao.queryObject(fieldId);
	}
	
	@Override
	public List<FieldEntity> queryList(Map<String, Object> map){
		return fieldDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return fieldDao.queryTotal(map);
	}
	
	@Override
	public void save(FieldEntity field){
		fieldDao.save(field);
	}
	
	@Override
	public void update(FieldEntity field){
		fieldDao.update(field);
	}
	
	@Override
	public void delete(Integer fieldId){
		fieldDao.delete(fieldId);
	}
	
	@Override
	public void deleteBatch(Integer[] fieldIds){
		fieldDao.deleteBatch(fieldIds);
	}
	
}
